package com.manage.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("coupon_history")
@ApiModel(value = "优惠券记录", description = "优惠券记录")
public class CouponHistory {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private long id;
    @ApiModelProperty(value = "优惠券id")
    private long couponId;
    @ApiModelProperty(value = "会员id")
    private long memberId;
    private String couponCode;
    @ApiModelProperty(value = "获取类型：0->后台赠送；1->主动获取")
    private long getType;
    private String createTime;
    @ApiModelProperty(value = "使用状态：0->已使用；1->未使用；2->已过期")
    private long useStatus;
    @ApiModelProperty(value = "使用时间")
    private String useTime;
    @ApiModelProperty(value = "订单id")
    private long orderId;
    @ApiModelProperty(value = "订单编号")
    private String orderSn;
    @TableField(exist = false)
    private TbClient tbClient;
    @TableField(exist = false)
    private TbCoupon tbCoupon;


}
